<html>
<head>
	<script src="../scriptaculous/lib/prototype.js" type="text/javascript"></script>
	 <script type="text/javascript" src="../jquery-1.6.2.js" language="javascript"></script>
	 	<script src="../scripts.js"></script>



<?php
	include ('../Connections/conn.php');
include ('../consultas.php');
?>
</head>
<body>

 <label>Seleccione la Empresa:</label>
                <div>
            <select  name="empresa" id="empresa" class="required validate-selection field select" title="Seleccione la empresa a al que pertenece la plantilla"  onChange="javascript:llamarasincrono('Plantillas/ver_depto.php?id='+this.options[this.selectedIndex].value,'muestrame');"> 
            <option value="none">Ninguna</option>
            <?php
            
             $empresa=datosEmpresa($conexion);
             
                for($c=0;$c<mysql_num_rows($empresa);$c++)
                    {
            ?>
            <option value="<?php echo mysql_result($empresa, $c, "id_empresa"); ?>"><?php echo mysql_result($empresa, $c, "nombre"); ?></option>
            <?php
                    }
            ?>
            </select>
            </div>
      	
            </li>
    <div id="muestrame">
    </div>

    <div id="muestrame2">
    </div>
   </body> 
 </html>